package com.rd.student.jiaji.class3.sunguowei.day0802.CountPractice;

public class Test4 {
    public static int avg(int[] arr){
        int num=0;
        for (int i = 0; i < arr.length; i++) {
            num+=arr[i];

        }
              return num/arr.length;
    }
    public static void main(String[] args) {
         int[] arr={60,77,33,55,11,22,80};
        System.out.println(avg(arr));
    }
}
